Skip to content

Commit

Permalink
正規表現のバグ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mikisato committed Feb 24, 2021
1 parent 9686252 commit 18c0d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/class/game-character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class GameCharacter extends TabletopObject {
let cloneObject = super.clone();

let objectname:string;
let reg = new RegExp('(.*)_([0-9]*)');
let reg = new RegExp('^(.*)_([0-9]+)$');
let res = cloneObject.name.match(reg);

if(res != null && res.length == 3) {
Expand Down

0 comments on commit 18c0d4f

Please sign in to comment.