Skip to content

Commit 44714ab

Browse files
committed
Optimize regex used for identifying whitespace
fixes dwins#27
1 parent f96039d commit 44714ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geocss/src/main/scala/org/geoscript/geocss/CssParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import org.geotools.filter.text.ecql.ECQL
1515
* @author David Winslow <[email protected]>
1616
*/
1717
object CssParser extends RegexParsers {
18-
override val whiteSpace = """(\s|/\*([^/]|[^*]/)*\*/)+""".r
18+
override val whiteSpace = """(?s)(?:\s|/\*.*?\*/)+""".r
1919

2020
private val expressionPartial =
2121
new PartialFunction[String,Expression] {

0 commit comments

Comments
 (0)