|
|
@@ -46,7 +46,7 @@ String.prototype.isWord = function() {
|
|
|
Question.prototype.getQuestionType = function() {
|
|
|
if (this.isBoolean())
|
|
|
return QuestionType.bool;
|
|
|
- if ((/^[0-9]+$/).exec(this.response))
|
|
|
+ if ((/^-?[0-9]+$/).exec(this.response))
|
|
|
return QuestionType.number;
|
|
|
return QuestionType.string;
|
|
|
}
|