Skip to content

Commit 7f13b8e

Browse files
committed
Fix bug in coding sandbox
1 parent 05dda78 commit 7f13b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/js/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ addEventListener("load", function() {
173173

174174
function parseFragment() {
175175
var hash = document.location.hash.slice(1);
176-
var valid = /^(\d)+(?:\.(\d+))?$/.exec(hash);
176+
var valid = /^(\d+)(?:\.(\d+))?$/.exec(hash);
177177
if (valid) {
178178
var chapter = getChapter(Number(valid[1]));
179179
var exercise = chapter && valid[2] && findExercise(hash, chapter);

0 commit comments

Comments
 (0)