Skip to content

Commit

Permalink
Merge pull request #276 from kelvintankaiboon/saveStockListVersion
Browse files Browse the repository at this point in the history
Fixed bug in SaveCommandParser
  • Loading branch information
kelvintankaiboon committed Nov 12, 2018
2 parents 1ecb5e2 + 236321e commit 7153227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static Password parsePassword(String password) throws ParseException {
*/
public static String parseFileName(String fileName) throws ParseException {
requireNonNull(fileName);
String invalidFileNameRegex = "[^\\w\\-. ]";
String invalidFileNameRegex = ".*[^\\w\\-. ].*";
String trimmedName = fileName.trim();
if (trimmedName.matches(invalidFileNameRegex)) {
throw new ParseException(Name.MESSAGE_NAME_CONSTRAINTS);
Expand Down

0 comments on commit 7153227

Please sign in to comment.