Permalink
Browse files

better name

  • Loading branch information...
1 parent 77659ef commit 46cacd38f1d87e64228f4d26d671297a59f7feeb @shaiguitar committed Oct 1, 2013
View
2 lib/haml-i18n-extractor/extraction/finder/exception_finder.rb
@@ -23,7 +23,7 @@ def initialize(text)
@text = text
end
- def self.could_match_script?(txt)
+ def self.could_match?(txt)
# want to match:
# = 'foo'
# = "foo"
View
4 lib/haml-i18n-extractor/extraction/finder/text_finder.rb
@@ -42,7 +42,7 @@ def tag(line)
txt = line[:value][:value]
if txt
has_script_in_tag = line[:value][:parse] # %element= foo
- if has_script_in_tag && !ExceptionFinder.could_match_script?(txt)
+ if has_script_in_tag && !ExceptionFinder.could_match?(txt)
FinderResult.new(:tag, "")
else
FinderResult.new(:tag, ExceptionFinder.new(txt).find)
@@ -54,7 +54,7 @@ def tag(line)
def script(line)
txt = line[:value][:text]
- if ExceptionFinder.could_match_script?(txt)
+ if ExceptionFinder.could_match?(txt)
FinderResult.new(:script, ExceptionFinder.new(txt).find)
else
FinderResult.new(:script, "")

0 comments on commit 46cacd3

Please sign in to comment.