Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentsValidators.cpp

Issue 1881113002: Fix references to ISO 15924 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove include changes Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/payments/PaymentsValidators.h" 5 #include "modules/payments/PaymentsValidators.h"
6 6
7 #include "bindings/core/v8/ScriptRegexp.h" 7 #include "bindings/core/v8/ScriptRegexp.h"
8 #include "wtf/text/StringImpl.h" 8 #include "wtf/text/StringImpl.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 return false; 53 return false;
54 } 54 }
55 55
56 bool PaymentsValidators::isValidScriptCodeFormat(const String& code, String* opt ionalErrorMessage) 56 bool PaymentsValidators::isValidScriptCodeFormat(const String& code, String* opt ionalErrorMessage)
57 { 57 {
58 if (ScriptRegexp("^([A-Z][a-z]{3})?$", TextCaseSensitive).match(code) == 0) 58 if (ScriptRegexp("^([A-Z][a-z]{3})?$", TextCaseSensitive).match(code) == 0)
59 return true; 59 return true;
60 60
61 if (optionalErrorMessage) 61 if (optionalErrorMessage)
62 *optionalErrorMessage = "'" + code + "' is not a valid ISO 1524 script c ode, should be an upper case letter [A-Z] followed by 3 lower case letters [a-z] "; 62 *optionalErrorMessage = "'" + code + "' is not a valid ISO 15924 script code, should be an upper case letter [A-Z] followed by 3 lower case letters [a-z ]";
63 63
64 return false; 64 return false;
65 } 65 }
66 66
67 } // namespace blink 67 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698