Regex matching filename 'composer.lock' fixed

The previous regex had an unescaped period, which matches any character between 'composer' and 'lock' in the filename.
This commit is contained in:
Andrée Hansson
2014-07-28 13:24:10 +02:00
parent c8754292f4
commit f6e2189739

View File

@@ -235,7 +235,7 @@ module Linguist
# #
# Returns true or false. # Returns true or false.
def composer_lock? def composer_lock?
!!name.match(/composer.lock/) !!name.match(/composer\.lock/)
end end
# Internal: Is the blob a generated by Zephir # Internal: Is the blob a generated by Zephir