Skip to content

Commit 8a2ccdb

Browse files
committed
Fixed illegal escape
1 parent 3136f67 commit 8a2ccdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

exercises/run-length-encoding/src/example/java/RunLengthEncoding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public String encode(String data) {
2525

2626
public String decode(String encodedData) {
2727
String decodedData = "";
28-
Pattern pattern = Pattern.compile("[0-9]+|[a-zA-Z\s]");
28+
Pattern pattern = Pattern.compile("[0-9]+|[a-zA-Z\\s]");
2929
Matcher matcher = pattern.matcher(encodedData);
3030

3131
while (matcher.find()) {

0 commit comments

Comments
 (0)