[Libguestfs] [PATCH v2 06/18] builder: Simplify PCRE regular expression by using case-insensitive matching.
Richard W.M. Jones
rjones at redhat.com
Thu Sep 21 14:54:01 UTC 2017
Updates commit e5182b87cf0c96933b39045bea3c5a94e29dcd95.
---
builder/languages.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builder/languages.ml b/builder/languages.ml
index 89d173999..155322014 100644
--- a/builder/languages.ml
+++ b/builder/languages.ml
@@ -20,7 +20,7 @@ open Std_utils
open Common_utils
let re_locale =
- PCRE.compile "^([A-Za-z]+)(_([A-Za-z]+))?(\\.([A-Za-z0-9-]+))?(@([A-Za-z]+))?$"
+ PCRE.compile ~caseless:true "^([a-z]+)(_([a-z]+))?(\\.([a-z0-9-]+))?(@([a-z]+))?$"
let split_locale loc =
let l = ref [] in
--
2.13.2
More information about the Libguestfs
mailing list