summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf/pdf_util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_util.js b/pdf/pdf_util.js
index 63e8f09f..536016b9 100644
--- a/pdf/pdf_util.js
+++ b/pdf/pdf_util.js
@@ -608,7 +608,7 @@ function AFNumber_Format(nDec,sepStyle,negStyle,currStyle,strCurrency,bCurrencyP
}
if (negStyle&1)
- event.target.textColor = /-/.text(val) ? color.red : color.black;
+ event.target.textColor = /-/.test(val) ? color.red : color.black;
event.value = intpart;
}