Use testSync instead of test

This commit is contained in:
Kevin Sawicki
2014-07-22 14:08:40 -07:00
parent 6d34de68ac
commit bbfd9b8178

View File

@@ -72,7 +72,7 @@ class LanguageMode
blank = line?.match(/^\s*$/)
allBlank = false unless blank
allBlankOrCommented = false unless blank or commentStartRegex.test(line)
allBlankOrCommented = false unless blank or commentStartRegex.testSync(line)
shouldUncomment = allBlankOrCommented and not allBlank