// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-'use strict';
-
/**
* Namespace object for file type utility functions.
*/
type: 'hosted', icon: 'gform', name: 'GFORM_DOCUMENT_FILE_TYPE',
subtype: 'form', pattern: /\.gform$/i
},
+ {
+ // We use extension ".gmaps" to avoid conflict, but use singular form
+ // (gmap/map) in other parts to be consistent with other file type.
+ type: 'hosted', icon: 'gmap', name: 'GMAP_DOCUMENT_FILE_TYPE',
+ subtype: 'map', pattern: /\.gmaps$/i
+ },
// Others
{
},
{
type: 'document', name: 'HTML_DOCUMENT_FILE_TYPE',
- subtype: 'HTML', pattern: /\.(html?|mht|mhtml)$/i
+ subtype: 'HTML', pattern: /\.(html?|mht(ml)?|shtml|xht(ml)?)$/i
},
{
type: 'document', icon: 'word', name: 'WORD_DOCUMENT_FILE_TYPE',